package deviceinfo.wsm.com.deviceinfosdk;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import deviceinfo.wsm.com.deviceinfo.event.EventSpy;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_test1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                EventSpy.onEvent("test1按钮点击");
            }
        });

        findViewById(R.id.btn_test2).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                EventSpy.onEvent("test2按钮点击");

            }
        });

        findViewById(R.id.btn_test3).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                EventSpy.onEvent("test3按钮点击");

            }
        });

    }

}
